package logic;

import java.io.IOException;
import java.net.InetAddress;
import java.net.UnknownHostException;

public class Online {
	public static boolean serverReachable(String host) {
	    try {
			if (InetAddress.getByName(host).isReachable(1000)) {
			    return true;
			}
		} catch (UnknownHostException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	    return false;
	}
}
